package com.zhang.cloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

//这是业务逻辑接口
@Component
@FeignClient(value="consul-provider-payment")//配置调用provide服务，在接口上注解，consul-p-p是在consul上的服务名
public interface FeignService {
    @RequestMapping(value = "/pay/consul")//注明服务的地址
    public String paymentConsul();
}
